package com.foreverwin.jzymes.production.custcmpln.service;
import com.foreverwin.jzymes.production.custcmpln.domain.CustCmplnLog;
import org.apache.commons.fileupload.FileItem;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ICustCmplnAdiviceService {

    /**
     * 插入客诉信息
     *
     * @param custCmplnLog
     *
     */
    public void insertCustCmpln(CustCmplnLog custCmplnLog);

    /**
     * 更改客诉信息
     *
     * @param custCmplnLog
     *
     */
    public void updateCustCmpln(CustCmplnLog custCmplnLog);

    /**
     * 检索客诉信息
     *
     * @param jsonMap
     * @return
     */
    public List< CustCmplnLog > searchCustCmpln(Map<String,Object> jsonMap);

    /**
     * 解析上传文件
     *
     * @param cmplnType
     * @param machineType
     * @param customer
     * @param approach
     * @param file
     */
    public String uploadAnnex(String machineType,String customer ,String cmplnType ,String approach, MultipartFile file );

    /**
     * 解析上传文件
     *
     * @param fileItem
     */
    public String uploadAnnex(FileItem fileItem, HttpServletRequest req  );
}
